Skip to content

Conversation

@yarikoptic
Copy link
Contributor

Without that run which asks to save results into external file would fail with

error: Uncaught (in promise) PermissionDenied: Requires write access to "derivatives/bids-validator/deno-bids-validator.txt", specify the required permissions during compilation using `deno compile --allow-write`
	at writeFileSync (ext:deno_fs/30_fs.js:899:3)
	at Object.writeTextFileSync (ext:deno_fs/30_fs.js:962:10)
	at main (https://jsr.io/@bids/validator/2.0.1/src/main.ts:38:12)
	at eventLoopTick (ext:core/01_core.js:175:7)
	at async https://jsr.io/@bids/validator/2.0.1/src/bids-validator.ts:2:16
  • There is also --allow-run which I do not know if should be enabled or not -- e.g. do you run HED validator as external tool, or anything else?

  • Is it possible to identify such needs at compile time?

README.md Outdated

```shell
deno run -ERN jsr:@bids/validator
deno run -ERNW jsr:@bids/validator
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just because RW is a meaningful sequence:

Suggested change
deno run -ERNW jsr:@bids/validator
deno run -ERWN jsr:@bids/validator

And note that the meanings of -E, -R and -N are described in the next paragraph. Could you add -W?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also we could mention that -A allows all permissions, if this is getting long.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done for 1st comment. I would not bother with -A as not used here/not directly relevant to this PR ;)

Without that run which asks to save results into external file would fail with

	error: Uncaught (in promise) PermissionDenied: Requires write access to "derivatives/bids-validator/deno-bids-validator.txt", specify the required permissions during compilation using `deno compile --allow-write`
		at writeFileSync (ext:deno_fs/30_fs.js:899:3)
		at Object.writeTextFileSync (ext:deno_fs/30_fs.js:962:10)
		at main (https://jsr.io/@bids/validator/2.0.1/src/main.ts:38:12)
		at eventLoopTick (ext:core/01_core.js:175:7)
		at async https://jsr.io/@bids/validator/2.0.1/src/bids-validator.ts:2:16

=== Do not change lines below ===
{
 "chain": [],
 "cmd": "git-sedi ' -ERN' ' -ERWN'",
 "exit": 0,
 "extra_inputs": [],
 "inputs": [],
 "outputs": [],
 "pwd": "."
}
^^^ Do not change lines above ^^^
@effigies effigies merged commit 587842a into bids-standard:main Feb 9, 2025
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants